package com.adou.demo.mapper;

import com.adou.demo.pojo.Brand;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @description:
 * @author:
 * @version: BrandMapper.java v 0.1
 * @date: 2023.04.02
 */
public interface BrandMapper {

    /***
     * @Description //查询所有品牌
     *
     * @Param
     * @return
     * @Date
     * @Author wj
     **/
    public List<Brand> selectAll();

    /***
     * @Description //根据注解查询详情
     *
     * @Param
     * @return
     * @Date
     * @Author wj
     **/
    public Brand selectByIdBrand(int id);

    /***
     * @Description // 条件查询
     *
     * @Param 1.散装参数，2.对象参数，3.map参数
     * @return
     * @Date
     * @Author wj
     **/
//    public List<Brand> selectByCondition(@Param("status") int status, @Param("companyName") String companyName, @Param("brandName")String brandName);


//    public List<Brand> selectByCondition(Brand brand);

    public List<Brand> selectByCondition(Map map);


    public void add(Brand brand);

    public int update(Brand brand);

    public int deleteById(int id);

    public int deleteByIds(@Param("ids") int[] ids);

}
